from bs4 import BeautifulSoup

if __name__ == '__main__':
    ## 读取本地的一个html文件
    fp = open('../3.requests/sogou.html','r',encoding="utf-8")
    ## 使用BeautifulSoup和lxml格式化文件
    soup = BeautifulSoup(fp,'lxml')
    ## 打印输出文件
    print(soup)